package com.mazaiting.ch07;

/**
 * 圆面积计算
 */
public class Math {

    public static void main(String[] args) {
        System.out.println(circumference(1.6f));
    }

    public static float circumference(float r) {
        float pi = 3.14f;
        System.out.println(pi);
        float pi1 = 2 * pi;
        System.out.println(pi1);
        float r1 = pi1 * r;
        System.out.println(r1);
        return r1;
    }

}
